import axios from '@/http/axios'
export default{
    namespaced:true,
    state:{
        cashData:[],
    },
    getters:{},
    mutations:{
        setCashData(state,data){
            state.cashData=data
        }
    },
    actions:{
        async toReadyCash(context,params){
            return await axios.post('/waiter/waiterexamine',params)
        },
        async toLoadCash(context,params){
            let res = await axios.post('/waiter/queryShou',params)
            context.commit('setCashData',res.data.data)
        }
    }
}